package designPattern.creation5.FactoryMethod.chapter13_factorymethod.chapter13_2;

public class RedPenCore extends PenCore {
    RedPenCore() {
        color = "红色";
    }

    public void writeWord(String s) {
        System.out.println("写出" + color + "的字:" + s);
    }
}
